home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig11_09.jar
/
Ch11
/
Fig11_09
/
Fig11_09.cpp
Wrap
C/C++ Source or Header
|
1997-11-09
|
370b
|
19 lines
// Fig. 11.9: fig11_09.cpp
// Calculating the sum of two integers input from the keyboard
// with the cin oct and the stream-extraction operator.
#include <iostream.h>
int main()
{
int x, y;
cout << "Enter two integers: ";
cin >> x >> y;
cout << "Sum of " << x << " and " << y << " is: "
<< ( x + y ) << endl;
return 0;
}